home *** CD-ROM | disk | FTP | other *** search
/ Alde ADA 1: #1 / CCCC 8804 Volume 1 Number 1 - Alde.iso / C / MISC / FUNC / PROFF.ARC / DEFS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1988-02-21  |  1.8 KB  |  89 lines

  1. /**
  2.  * defs.h
  3.  *
  4.  * #define rainbow - rainbow CP/M-86 version
  5.  * #define vms     - vms version (predefined by VAX11C compiler)
  6.  * #define unix    - unix version
  7.  */
  8.  
  9. /*
  10.  *  Synonyms for ASCII control characters
  11.  *
  12.  */
  13.  
  14. #define BACKSPACE        8
  15. #define BEL              7
  16. #define BELL             7
  17. #define BLANK            32
  18. #define CARRIAGE_RETURN  13
  19. #define NEWLINE          10
  20. #define RUBOUT           127
  21. #define TAB              9
  22.  
  23. /*
  24.  * misc. definitions
  25.  *
  26.  */
  27.  
  28. #define EOS          0
  29. #define HUGE         30000
  30. #define NO           0
  31. #define OK           0
  32. #define YES          1
  33. #define FALSE        0
  34. #define TRUE         1
  35. #define FILENAMESIZE 50
  36. #define MAXCHARS     20
  37. #define MAXLINE      256
  38. #define MAXTOK       80
  39. #define ARB          MAXLINE
  40.  
  41. #define MAXCARD  MAXLINE-1
  42. #define MAXNAME  FILENAMESIZE
  43.  
  44. #define NCHARS    33
  45. #define MAXOFILES 12
  46.  
  47. #define ARGFLAG       '$'
  48. #define INSIZE        MAXLINE
  49. #define MAXOUT        2*MAXLINE
  50. #define MAXDEF        200
  51. #define NFILES        MAXOFILES-4
  52. #define PAGENUM       '#'
  53. #define CURRENTDATE   '%'
  54. #define ESCAPE        '@'
  55. #define VESCAPE       '$'
  56. #define PAGEJECT      12
  57. #define PAGEWIDTH     65
  58. #define PAGELEN       62
  59. #define BUFSIZE       512
  60. /*
  61.  * lexical analyser values
  62.  *
  63.  * include lexical analyser return constants
  64.  * generated by ltb.
  65.  *
  66.  */
  67. #include "lextab.d"
  68.  
  69. #define UNKNOWN  999
  70. #define MACRO    0
  71. #define NEGATED -1
  72. #define LEFT     1
  73. #define CENTER   2
  74. #define RIGHT    3
  75.  
  76. /*
  77.  * structure definition for contents linked list
  78.  *
  79.  */
  80. struct clist {                         /* list struct for contents  */
  81.    char level;
  82.    char *str;
  83.    int page;
  84.    struct clist *nextc;
  85. };
  86.  
  87. #undef putchar
  88. #define putchar(c) putc((c),poutput);
  89.